package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.*;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_ship")
public class TShipTree implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主建id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 船名 */
    @Excel(name = "船名")
    private String shipName;

    @TableField(exist = false)
    private List<TShipTree> children = new ArrayList<TShipTree>();

    /**
     * 请求参数
     */
    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
